package cn.hxzy.teacher.service;


import cn.hxzy.common.domain.ClassTable;
import cn.hxzy.common.domain.vo.ClassStudentVo;
import cn.hxzy.common.domain.vo.SelectClass;
import cn.hxzy.common.domain.vo.TeacherClassVo;
import cn.hxzy.common.response.R;

import java.util.List;

/**
 * @Author LiDong
 * @Description
 * @create 2024/6/22 15:09
 */

public interface TeacherService {

    //根据班级id查询班级新
    List<TeacherClassVo> newfindClassroomByTeacherId(Integer teacherId);
    // 获取所有课程
    List<ClassStudentVo> selectAllClassList(Integer courseId);

    List<ClassStudentVo> selectClassBySearchKey(Integer courseId, String className, String createName, Integer isAuthorized);

    R createClassroomCourseAuthorized(String courseId, String classId, Boolean isAuthorized);


    // 创建班级
    boolean createClassroom(ClassTable classTable);

    //根据班级名称查询班级
    int selectOneClass(String className);

    // 通过教师id查询班级
    List<SelectClass> findClassroomByTeacherId(Integer teacherId);

    // 更新班级
    String updateClass(Integer classId,String className);

    // 删除班级
    Boolean deleteClassroom(Long classroomId);

    // 模糊查询班级
    List<SelectClass> findClassroomByName(String name, Integer teacherId);

    List<ClassTable> findAllClassroom() ;
}
